package self.example.explore.po;

public class Dept {
    private Integer id;

    private String depName;

    private String addr;

    public Dept(Integer id, String depName, String addr) {
        this.id = id;
        this.depName = depName;
        this.addr = addr;
    }

    public Dept() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName == null ? null : depName.trim();
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr == null ? null : addr.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", depName=").append(depName);
        sb.append(", addr=").append(addr);
        sb.append("]");
        return sb.toString();
    }
}